package top.superflow.security.dft

import javax.xml.bind.DatatypeConverter
import top.superflow.verify.Ensure

object SecurityUtils extends Ensure{
    
  def convertByteArrayToHexString(source : Array[Byte]): String = {
    notNull(source, "The byte array can't be null.")
    
    DatatypeConverter.printHexBinary(source)
  }
}